﻿using Nemerle.Collections;
using Nemerle.Text;
using Nemerle.Utility;

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Nemerle2.Parser;

namespace ParserTest
{
  /// <summary>
  /// Description of MainForm.
  /// </summary>
  public partial class MainForm : Form
  {
    public this()
    {
      InitializeComponent();
    }

    private btnParse_Click (_ : object, _ : System.EventArgs) : void
    {
      def project = Nemerle2.Compiler.NProject(null);
      def parser = MacroParser(project);
      def source = Nemerle.Peg.SourceSnapshot(txtInput.Text);
      def result = parser.TryParse(source);

      _ = result;
    }
  }
}
